<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js数组</title>
		<script>
			var a = new Array(5);
			a[0]="liubei";
			a[1]="张飞";
			a[4]="吕布";
			a[100]="老曹";
			console.log(a.length);
			console.log(a.join("$"));
			a.length=10;
			a[9]="老张";
			console.log(a.join("$"));
			
		</script>
	</head>
	<body>
	</body>
</html>
